package com.hehan.hhdemo.po;

import java.io.Serializable;

/**
 * Created by gefuyi on 2018/8/13.
 */
public class EsConfigEntity implements Serializable {


    /**
     * ES的index名称
     */
    private String esIndex;
    /**
     * ES的type名称
     */
    private String esType;

    /**
     *   查询，删除 对象使用的通用字段
     */
    private String handleStr;



    /**
     * 精确查询字段名
     */
    private String termKey;
    /**
     * 精确查询的值
     */
    private String termValue;

    public String getHandleStr() {
        return handleStr;
    }

    public void setHandleStr(String handleStr) {
        this.handleStr = handleStr;
    }

    public String getTermKey() {
        return termKey;
    }

    public void setTermKey(String termKey) {
        this.termKey = termKey;
    }

    public String getTermValue() {
        return termValue;
    }

    public void setTermValue(String termValue) {
        this.termValue = termValue;
    }

    private int pageNo = 1; // 当前页码
    private int pageSize = 10; // 页面大小，设置为“-1”表示不进行分页（分页无效）
    private String orderBy = ""; // 标准查询有效， 实例： updatedate desc, name asc


    //private int startIndex = 0; //开始位置

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    /**
     * 获得开始索引值
     *
     * @return
     */
    public int getStartIndex() {
        return (this.pageNo - 1) * this.pageSize;
    }


    public String getEsIndex() {
        return esIndex;
    }

    public void setEsIndex(String esIndex) {
        this.esIndex = esIndex;
    }

    public String getEsType() {
        return esType;
    }

    public void setEsType(String esType) {
        this.esType = esType;
    }




}
